package com.wicket.okrbff.biz.service.dto.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.ArrayList;
import javax.validation.constraints.NotNull;
import lombok.Data;
import java.util.Objects;
    
    
    /**
     * @desc BffConfItemResultDto
     * @使用场景
     */
    @Data
    public class BffConfItemResultDto  implements Serializable {
      
    /**
     * 答案值 
     */
    @NotNull(message = "答案值不能为空")
@ApiModelProperty("答案值")
    private String	 endValue;

    /**
     * 选项关系ID 
     */
    @NotNull(message = "选项关系ID 不能为空")
@ApiModelProperty("选项关系ID ")
    private String	 confOptionRshipId;

    /**
     * 填空答案类型（非必填） NUMERIC:数值 TEXT:文本 DATETIME:日期 TIME:时间
     */
    @ApiModelProperty("填空答案类型（非必填）")
    private String	 resultType;

    /**
     * 答案排序 
     */
    @NotNull(message = "答案排序不能为空")
@ApiModelProperty("答案排序")
    private Long	 confOptionSortNum;

    /**
     * 选项标识 
     */
    @NotNull(message = "选项标识不能为空")
@ApiModelProperty("选项标识")
    private String	 confOptionCode;

    /**
     * 选项名称 
     */
    @NotNull(message = "选项名称不能为空")
@ApiModelProperty("选项名称")
    private String	 confOptionName;
@Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      BffConfItemResultDto that = (BffConfItemResultDto) o;
      return  endValue == that.endValue&&confOptionRshipId == that.confOptionRshipId&&resultType == that.resultType&&confOptionSortNum == that.confOptionSortNum&&confOptionCode == that.confOptionCode&&confOptionName == that.confOptionName;
    }
@Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), endValue,confOptionRshipId,resultType,confOptionSortNum,confOptionCode,confOptionName);
    }
    
      

    }
   